import java.nio.file.FileSystems
import java.nio.file.Paths

/**
 * Created by Misty on 2015/1/24.
 */
class Test {
    static void main(args) {
        FileSystems.default.rootDirectories.each {
            println it == it.root
        }

//        def fsv = FileSystemView.getFileSystemView();
//
//        println fsv.getHomeDirectory()
////        println fsv.getDefaultDirectory()
////        println fsv.roots
//
//        System.getProperties().each {println it}

        def url = new URL('file:/F:/图片/win8/Windows%208-2012-06-27-20-39-38.png')
        println url.toExternalForm()
        println url.file
        def file = new File(url.file)
        println file
        def path = Paths.get('file:/F:/图片/win8/Windows%208-2012-06-27-20-39-38.png')
        println path
    }
}
